#include "common/stringutil/stringutil.h"
#include <common/hotkey/hotkey.h>
#include <common/logger/logger.h>
#include <private/hotkey/hotkey_p.h>

#ifdef Q_OS_WIN
// bool HotKey::registerHotKey(HWND hwnd, int id, unsigned int keyModifiers, unsigned int vk)
// {
// 	return ::RegisterHotKey(hwnd, id, keyModifiers, vk) != FALSE;
// }
// bool HotKey::unregisterHotKey(HWND hwnd, int id)
// {
// 	return ::UnregisterHotKey(hwnd, id) != FALSE;
// }
#endif

int HotKey::registerHotKey(const QWidget* widget, const std::string& hotKey)
{
	return HotKeyPrivate::registerHotKey(widget, hotKey);
}

bool HotKey::unregisterHotKey(QWidget* widget, int id)
{
	return true;
}